
<template>
	<view>
     <u-navbar :is-back="false" title="个人中心" :background="background">
      <view class="map-wrap" @click="goHome">
        <u-icon name="home" size="38"></u-icon>
      
      </view>
    </u-navbar>
		<!-- <u-navbar :is-back="false" title="　" :border-bottom="false">
			<view class="u-flex u-row-right" style="width: 100%;">
				<view class="camera u-flex u-row-center">
					<u-icon name="camera-fill" color="#000000" size="48"></u-icon>
				</view>
			</view>
		</u-navbar> -->
		<view class="u-flex user-box u-p-l-30 u-p-r-20">
			<view class="u-m-r-10 u-m-t-20">
				<u-avatar :src="pic" size="140"></u-avatar>
			</view>
			<view class="u-flex-1">
				<view class="u-font-18 u-p-b-20">今天是星期五吗</view>
				<view class="u-font-14 u-tips-color">微信号:sjzjams</view>
			</view>
			<view class="u-m-l-10 u-p-10">
				<u-icon name="scan" color="#969799" size="28"></u-icon>
			</view>
			<view class="u-m-l-10 u-p-10">
				<u-icon name="arrow-right" color="#969799" size="28"></u-icon>
			</view>
		</view>
		
		<view class="u-m-t-20">
			<u-cell-group>
				<u-cell-item icon="rmb-circle" title="订单"></u-cell-item>
			</u-cell-group>
		</view>
		
		<view class="u-m-t-20">
			<u-cell-group>
				<u-cell-item icon="star" title="收藏"></u-cell-item>
				<u-cell-item icon="photo" title="相册"></u-cell-item>
				<u-cell-item icon="coupon" title="卡券"></u-cell-item>
				<u-cell-item icon="heart" title="关注"></u-cell-item>
			</u-cell-group>
		</view>
		
		<view class="u-m-t-20">
			<u-cell-group>
				<u-cell-item icon="setting" title="设置"></u-cell-item>
			</u-cell-group>
		</view>
    <!-- 与包裹页面所有内容的元素u-page同级，且在它的下方 -->
      <u-tabbar :list="tabbar" :mid-button="true"></u-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pic:'https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83erZiclrLSmja8bWvcZRH3GbBSrIGpfHpOuqwWo17yEGlBB3aqiarR0PQbLInbG5wP9G1Vl4MUEPPOOw/132',
				show:true,
				tabbar: "",
				background: {
				"background-image":
				"linear-gradient(45deg, rgb(28, 187, 180), rgb(141, 198, 63))",
				},
			}
		},
		onLoad() {
			this.tabbar =this.$store.state.tabbar
		},
		methods: {
			isGetUserInfo(){
      //todo 获取用户信息
      },
      goHome() {
        console.log("s1");
        // 无参数
        this.$u.route({
          url: "pages/index/index",
          type: "tab",
        });
      },
		}
	}
</script>

<style lang="scss">
.slot-wrap {
  display: flex;
  align-items: center;
  /* 如果您想让slot内容占满整个导航栏的宽度 */
  /* flex: 1; */
  /* 如果您想让slot内容与导航栏左右有空隙 */
  padding: 0 30rpx;
}.wrap {
  padding: 2rpx;
}
.slot-wrap {
  display: flex;
  align-items: center;
  flex: 1;
}

.map-wrap {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  background-color: rgba(240, 240, 240, 0.35);
  color: #fff;
  font-size: 22rpx;
  border-radius: 100rpx;
  margin-left: 30rpx;
}

.map-wrap-text {
  padding: 0 6rpx;
}
page{
	background-color: #ededed;
}

.camera{
	width: 54px;
	height: 44px;
	
	&:active{
		background-color: #ededed;
	}
}
.user-box{
	background-color: #fff;
}
</style>
